﻿%style
  -foreach(var s in (ViewData["Schedules"] as List<Schedule>))
    =string.Format(".sc{0} [ background: {1}; ] .sct{0} [ background: {2}; ]",s.Id,s.BgColor,s.TaskBgColor).Replace('[','{').Replace(']','}')
#content
  #schedule
    _day
#rightmenu
  %form#scheduleform
    %input#date{type="hidden",name="date",value=((DateTime)ViewData["Date"]).ToString("dd.MM.yyyy")}
    %input#mode{type="hidden",name="mode",value="month"}
  #calendarholder.monthmode
  %form#searchform{action="task.ivp/list",method="post"}
    %input#search{name="tb_search"}
    %input{name="reset",value="true",type="hidden"}
    %input.middle{type="image",src="img/buttons/search.gif"}